package singletonpattern;

/**
 * @description:
 * @author: Jerry
 * @date: 2021/9/16
 */
public class Singleton1 {

    private static Singleton1 instance = new Singleton1();

    private Singleton1() {

    }

    public static Singleton1 getInstance() {
        return new Singleton1();
    }

    public void showMessage() {
        System.out.println("hello world!");
    }
}
